#include "threadPool.h"
int initThreadPool(threadPool_t *threadPool, int workerNum)
{
    threadPool->tidArr = (pthread_t *)calloc(workerNum, sizeof(pthread_t));
    threadPool->workerNum = workerNum;
    initQueue(&threadPool->taskQueue);
    threadPool->exitflag = 0;
    bzero(threadPool->cmd,MAXCMD);
    bzero(threadPool->cmd_argv,MAXCMDARGV);
    return 0;
}
